<?php

namespace app\api\controller;

use app\api\model\Config;

class Notice extends Common
{
    public function getIndexNotice()
    {
        $is_open = Config::where(['name' => 'qrp_show_notice'])->value("value");
        $content = Config::where(['name' => 'qrp_notice_content'])->value("value");
        $res = [
            'is_open' => $is_open,
            'notice_content' => $content
        ];
        return $this->ajaxReturn($this->successCode, '返回成功', htmlOutList($res));
    }
}